package com.liveinstars.api.im;

import com.onepiece.shipelves.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: zhouze
 * @date: 2020/4/13
 */
@FeignClient("im")
public interface FansApi {

    /**
     * 判断用户是否已关注
     * @param userId (当前用户)
     * @param fansId (目标用户)
     * @return
     */
    @GetMapping(value = "/isFans")
    Result<Boolean> isFans(@RequestParam(value = "userId", defaultValue = "") Long userId, @RequestParam(value = "fansId", defaultValue = "") Long fansId);

}
